package kiwi.assist.dev.guieditor.event {
	import flash.display.DisplayObject;
	import flash.events.Event;

	/**
	 * ui相关的操作
	 * @author zhangming.luo
	 */
	public class GUIOperateEvent extends Event {
		public static const UI_ADD : String = "UI_ADD";
		public static const UI_REMOVE : String = "UI_REMOVE";
		public static const START_EDIT : String = "START_EDIT";
		public static const START_DRAG : String = "START_DRAG";
		/**
		 * 克隆一个ui的说
		 */
		public static const CLONE_UI : String = "CLONE_UI";
		/**
		 * 图层级别的移动
		 */
		public static const LAYER_MOVE : String = "LAYER_MOVE";
		public static const BACKGROUND_ADD : String = "BACKGROUND_ADD";
		public static const BACKGROUND_REMOVE : String = "BACKGROUND_REMOVE";
		public static const CHANGE_VALUE : String = "CHANGE_VALUE";
		public var targetUi : DisplayObject;
		public var param : *;

		public function GUIOperateEvent(event : String, targetUi : DisplayObject, param : * = null) {
			this.targetUi = targetUi;
			this.param = param;
			super(event);
		}
	}
}
